home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / tutorials / custEducation / opengl2 / examples / texture / README < prev    next >
Encoding:
Text File  |  1996-11-11  |  2.7 KB  |  90 lines

  1.  
  2.         to compile programs in the above-indicated sub- directories/trees, 
  3.        one must load libglut. inst-able images of GLUT v3.1 are located at 
  4.                 toolbox/src/exampleCode/opengl/GLUT/inst/ 
  5.  
  6.                   -------------------------------------
  7.  
  8.    ~opengl2/examples/texture README
  9.  
  10.             Copyright 1993, 1996, Silicon Graphics,  Inc.
  11.             Technical Education Development
  12.             All Rights Reserved.
  13.  
  14.         A collection of programs demonstrating basic texture
  15.         mapping using OpenGL.
  16.  
  17.  
  18.    texture.c
  19.         Reads in a texture from a .rgb file, sets up the texture and the 
  20.     texture environment, then applies the texture to a rectangular 
  21.     polygon using explicit texture coordinates.
  22.  
  23.     Escape key - exits the program
  24.    
  25.  
  26.    mipmap.c
  27.     Reads in a texture from a .rgb file, uses the opengl utility 
  28.     library routine gluBulid2dMipmaps() to scale and load mipmaps 
  29.     for a single texture image, then applies the texture to a 
  30.     rectangular polygon using explicit texture coordinates.
  31.  
  32.     <a> key        - pause/restart movement
  33.     <m> key        - cycle minification filter
  34.     <M> key        - cycle Magnification filter
  35.     <R> key        - reset image to starting position
  36.     Escape Key    - exit program
  37.  
  38.  
  39.    wrap.c
  40.     This program reads in a single image from a .rgb file, and
  41.     creates and load mipmaps of the image into texture memory. It
  42.     sets the texture up to clamp in the s dimension and repeat in
  43.     the t dimension, and then applies the texture to a rectangular
  44.     polygon using explicit texture coordinates outside the range
  45.     [0,1].
  46.  
  47.     <a> key        - pause/restart movement
  48.     Escape Key    - exit program
  49.  
  50.  
  51.    borders.c:  demonstrates how texture borders are used when textures wrap.
  52.  
  53.     It specifies a border color of red which is averaged with the
  54.     texture edge when the texture is clamped, and the filtering
  55.     is not GL_NEAREST.
  56.  
  57.     <a> key        - toggle animation on/off
  58.     Escape Key    - exit program
  59.  
  60.  
  61.    texenv.c
  62.     This program demonstrates the texture environment modes.  
  63.     It reads in a texture from a .rgb(a) file, and
  64.     applies it as a texture to a rectangular polygon using explicit
  65.     texture coordinates.
  66.  
  67.     The enironment modes can be changed interactively.
  68.  
  69.     <c> Key     - toggle polygon color between white/red 
  70.     <e> key        - cycle through environment modes
  71.     Escape key    - exit the program
  72.  
  73.  
  74.    swim.c
  75.      This program demonstrates how the alpha values in a texture
  76.      can be combined with the texture environment to make textures
  77.     with tranparent areas.
  78.  
  79.     alphaFunc and blending are used to make the parts of the
  80.     rectangle outside the fish image transparent wherever the
  81.     fish.rgba file has low alpha values.
  82.  
  83.     <a> Key         - toggle alpha test on/off
  84.     <b> Key         - toggle blending on/off
  85.     <e> Key     - cycle through texture environment modes
  86.     <s> Key         - toggle swimming on/off
  87.     Escape key    - exit the program
  88.  
  89.  
  90.